package com.gengzp.system;

import org.mybatis.spring.annotation.MapperScan;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;

/**
 * @ClassName SystemApplication
 * @Description
 * @Author gengzp
 * @Date 2025/9/8 13:33
 */
@SpringBootApplication
@ComponentScan({"com.gengzp.common",
        "com.gengzp.system",
        "com.gengzp.permission",
        "com.gengzp.rpc",
        "com.gengzp.mq"})
@MapperScan("com.gengzp.system.mapper")
public class SystemApplication {

    private static final Logger logger = LoggerFactory.getLogger(SystemApplication.class);

    public static void main(String[] args) {
        long startTime = System.currentTimeMillis();
        SpringApplication.run(SystemApplication.class, args);
        logger.info("============== 系统服务【system】启动完成, 耗时: {}ms ==============",
                System.currentTimeMillis() - startTime);
    }

}
